﻿using System;

namespace DelegationAndEvents
{
    class CMBCreditCard : CreditCard
    {
        public CMBCreditCard(string creditName)
        {
            CreditName = creditName;
        }
        public override void check1()
        {
            Console.WriteLine($"{CreditName}到期还款了");
            OnExpire();
        }
        public override void check2()
        {
            Console.WriteLine($"{CreditName}到期还款了,需要还款{1000000}万");
            OnExpireMoney(this, new RepaymentEventArgs(1000000));
        }
    }
}
